package licode.unisop.oidc.auth.modal;

import lombok.Getter;

import java.io.Serializable;

/**
 * 定义访问令牌的参数请求
 *
 * @author licode
 */
@Getter
public class RefreshTokenRequest implements Serializable {

	private static final long serialVersionUID = -6521190061682008185L;

	/**
	 * 访问令牌
	 */
	private String refreshToken;

	/**
	 * 应用id
	 * -- GETTER --
	 *
	 */
	private String clientId;

	/**
     * 领域ID
     */
	private String realmId;

	/**
	 * 平台ID
	 */
	private String platformId;

	/**
	 * 租户ID（业务用户）
	 */
	private String tenantId;

	/**
	 * 终端类型（比如WEB、APP、小程序等）
	 */
	private String terminal;

	/**
	 * @param clientId 要设置的 clientId
	 * @return 对象自身
	 */
	public RefreshTokenRequest setClientId(String clientId) {
		this.clientId = clientId;
		return this;
	}

	public RefreshTokenRequest setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
		return this;
	}

	public RefreshTokenRequest setRealmId(String realmId) {
		this.realmId = realmId;
		return this;
	}

	public RefreshTokenRequest setPlatformId(String platformId) {
		this.platformId = platformId;
		return this;
	}

	public RefreshTokenRequest setTenantId(String tenantId) {
		this.tenantId = tenantId;
		return this;
	}

	public RefreshTokenRequest setTerminal(String terminal) {
		this.terminal = terminal;
		return this;
	}
}
